/*
 *  AClip.cpp
 *  libavid
 *
 *  Created by Peter on 23.02.12.
 *  Copyright 2012 __MyCompanyName__. All rights reserved.
 *
 */

#include "AClip.h"
#include "AStream.h"

A_IMPLEMENT_CLASS( 'CLIP', AClip, AComponent );

void AClip::readFromStream( AStream& str, const AObjDoc& objd )
{
	AComponent::readFromStream( str, objd );
	
	UInt8 tagMark, version;
	
	str.readPod( tagMark );
	str.readPod( version );
	
	//TR_ASSERT( tagMark == 0x02 );
	//TR_ASSERT( version == 0x01 );
	
	str.readPod( _length );
}

void AClip::dump( std::ostream& str ) const
{
	str << "AClip {" << std::endl;
	str << "\t";
	AComponent::dump( str );
	str << "\t_length: " << _length << std::endl;
	str << "}" << std::endl;
}